package JavaShengSai;

import java.util.Scanner;

/**
 * 5. 成绩分析
 * https://www.lanqiao.cn/problems/497/learning/?problem_list_id=2&page=1&tag_relation=intersection&tags=2020
 */
public class Main5 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        double n = scan.nextInt();
        double sum = 0;
        int max = 0;
        int min = 100;
        for(int i = 0;i < n;i++) {
            int x = scan.nextInt();
            sum += x;
            if(x > max) {
                max = x;
            }
            if(x < min) {
                min = x;
            }
        }
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f",sum/n);
        scan.close();
    }
}
